package com.ddtech.business.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ddtech.business.check.entity.CheckUserQuestion;
import com.ddtech.business.practice.entity.PracticeUserQuestion;
import com.ddtech.business.web.entity.CollectRecord;
import com.ddtech.business.web.query.CollectRecordQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 * 收藏记录表 Mapper 接口
 * </p>
 *
 * @author bin_pu
 * @since 2023-02-06
 */
@Mapper
public interface CollectRecordMapper extends BaseMapper<CollectRecord> {

    IPage<Map<String, Object>> personCollectCourseList(IPage page, @Param("collectRecordQuery") CollectRecordQuery collectRecordQuery);

    IPage<Map<String, Object>> collectCourseList(IPage page, @Param("collectRecordQuery") CollectRecordQuery collectRecordQuery);

    /**
     * description: 练习收藏
     * @param:  * @param page
     * @param collectRecordQuery
     * @date: 2023-07-11
     * @return: com.baomidou.mybatisplus.core.metadata.IPage<com.ddtech.business.practice.entity.PracticeUserQuestion>
     * @version v1.0
     * @author:wei_zhang(xiao)
     */
    IPage<PracticeUserQuestion> collectBankList(IPage page, @Param("collectRecordQuery") CollectRecordQuery collectRecordQuery);

    /**
     * description: 考试试题收藏
     * @param:  * @param page
     * @param collectRecordQuery
     * @date: 2023-07-11
     * @return: com.baomidou.mybatisplus.core.metadata.IPage<com.ddtech.business.practice.entity.PracticeUserQuestion>
     * @version v1.0
     * @author:wei_zhang(xiao)
     */
    IPage<CheckUserQuestion> collectCheckList(IPage page, @Param("collectRecordQuery") CollectRecordQuery collectRecordQuery);
}
